package com.kotlin.tsw.usercenter.data.api

import com.kotlin.tsw.baselibrary.data.protocol.BaseResp
import com.kotlin.tsw.usercenter.data.protocol.*
import retrofit2.http.Body
import retrofit2.http.POST
import rx.Observable

interface UserApi {
    @POST("UserCenter/register")
    fun register(@Body req: RegisterReq)
            :Observable<BaseResp<String>>
    @POST("UserCenter/login")
    fun login(@Body req: LoginReq)
            :Observable<BaseResp<UserInfo>>
    @POST("UserCenter/forgetPwd")
    fun forgetPwd(@Body req: ForgetPwdReq)
            :Observable<BaseResp<String>>
    @POST("UserCenter/resetPwd")
    fun resetPwd(@Body req: ResetPwdReq)
            :Observable<BaseResp<String>>
    @POST("UserCenter/editUser")
    fun editUser(@Body req: EditUserReq)
            :Observable<BaseResp<UserInfo>>
}